package com.hyh.user.service;

import com.hyh.user.domain.LoginForm;
import com.hyh.user.domain.User;
import com.hyh.user.result.PageResult;
import org.springframework.web.multipart.MultipartFile;


public interface UserService {
    PageResult login(User user);

    PageResult sendCode(String phone);

    PageResult loginByCode(LoginForm loginForm);

    PageResult updateUser(User user);

    PageResult getUserById(Integer id);

    PageResult getAllUser();

    PageResult resetPassword(User user);

    PageResult uploadAvatar(MultipartFile file, Long id);


    PageResult testRedisUtil(Long id);
}
